import request from './request'

export const submitConstitutionTestApi = (data) => {
  return request({
    url: '/tcm-constitution/submit',
    method: 'POST',
    data
  })
}

export const getConstitutionHistoryApi = () => {
  return request({
    url: '/tcm-constitution/history',
    method: 'GET'
  })
}

export const getConstitutionDetailApi = (id) => {
  return request({
    url: `/tcm-constitution/${id}`,
    method: 'GET'
  })
} 